﻿using UnityEngine;
using System.Collections;

public class BloodShow : HudBase 
{
    private UILabel number;

    protected override void Init()
    {
        base.Init();

        _deltaPos.y = 3.0f;
        number = transform.GetComponentByPath<UILabel>("Number");
    }

    /// <summary>
    /// 设置血量
    /// </summary>
    /// <param name="blood"></param>
    /// <param name="beHit">true 减血、 加血</param>
    public void SetBlood(Transform node, int blood, bool beHit = true)
    {
        SetHud(node, true, true);
        number.text = blood.ToString();
    }
}
